Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcos(x): band-limited cos(x), GLSL and HLSL #156

Merged

Conversation

shadielhajj
Copy link
Collaborator

Added IQ's band-limited variant of cos(x) which dramatically reduces aliasing at high frequencies.
Copied as is from Inigo's 2020 article https://iquilezles.org/articles/bandlimiting/

cos(x) wave aliasing at high frequencies
Screenshot 2024-07-07 140402

fcos(x) replacement
Screenshot 2024-07-07 140947

@patriciogonzalezvivo
Copy link
Owner

Super useful!

@patriciogonzalezvivo patriciogonzalezvivo merged commit df9b9a3 into patriciogonzalezvivo:main Jul 7, 2024
@shadielhajj
Copy link
Collaborator Author

Indeed! Love these band-limited variants of step, fract, cos... by IQ and Neyret. I use them by default.

@shadielhajj shadielhajj deleted the feature/fcos branch July 7, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants